# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Ivan Tham <pickfire@riseup.net>
pkgname=libwacom
pkgver=1.4.1
pkgrel=0
pkgdesc="Library to help implement Wacom tablet settings"
url="https://github.com/linuxwacom/libwacom/wiki"
arch="all !s390x !mips !mips64" # librsvg
license="MIT"
makedepends="librsvg-dev gtk+2.0-dev glib-dev libgudev-dev libxml2-dev meson"
checkdepends="bash findutils diffutils"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/linuxwacom/libwacom/releases/download/libwacom-$pkgver/libwacom-$pkgver.tar.bz2
	disable-tests.patch
	"

build() {
	abuild-meson . output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="bad8bbb8d3b98c1f9c3661ca60f72319e2f06acab5cb128a5b7a2e02da20f249d094a0b4b0ed4e5c67eb696973f23d8c9cd5f432a8e9d37df55c9f23de949fb9  libwacom-1.4.1.tar.bz2
bf559a95331c3ad791b6c6d0ce935ae45dd8d252fe06c29a34ce94284808daf4f341f0f6570f7ee69a0e1c6a44f86f44b5cc06fd1cc1017a51a777d776ea222c  disable-tests.patch"
